@echo off
REM 启动生产环境jar包，自动激活prod配置
set JAR_NAME=shengxian.jar
set JAVA_OPTS=-Xms512m -Xmx1024m

REM 可选：设置日志目录
set LOG_DIR=logs
if not exist %LOG_DIR% mkdir %LOG_DIR%

REM 启动jar包，激活prod profile
java %JAVA_OPTS% -jar %JAR_NAME% --spring.profiles.active=prod > %LOG_DIR%\shengxian-prod-console.log 2>&1

pause 